package com.dce.dev.api.controller.basebusiness;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.dce.dev.api.dto.base.ResultDTO;
import com.dce.dev.api.dto.basebusiness.appuser.ChangepasswordReqDTO;
import com.dce.dev.api.dto.basebusiness.appuser.ResetpasswordReqDTO;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;


/**
 * 基础接口
 */
@RestController
@RequestMapping("/passwordManage")
@Api(value = "后台服务--密码管理", description = "后台服务--密码管理")
public class PasswordController {
    
    @RequestMapping(value = "/reset", method = RequestMethod.POST)
    @ApiOperation(value = "重置密码")
    public ResultDTO<Void> resetpassword(@RequestBody ResetpasswordReqDTO dtoReq) {
//        String strJson = JsonFileTool.readJSON("basebusiness/appuser/resetpassword.json");
//        final ResetpasswordDTO dtoRtn = JsonUtils.jsonToPojo(strJson, ResetpasswordDTO.class);
        return ResultDTO.success("重置成功");
    }
    
   
    @RequestMapping(value = "/change", method = RequestMethod.POST)
    @ApiOperation(value = "修改密码")
    public ResultDTO<Void> changepassword(@RequestBody ChangepasswordReqDTO dtoReq) {
//        String strJson = JsonFileTool.readJSON("basebusiness/appuser/resetpassword.json");
//        final ResetpasswordDTO dtoRtn = JsonUtils.jsonToPojo(strJson, ResetpasswordDTO.class);
        return ResultDTO.success("修改成功");
    }
    
}
